Add clone parameter support to startWorkspace in web and mobile clients#12
Merged
Add clone parameter support to startWorkspace in web and mobile clients#12
Conversation
Previously, the `--clone` flag was only supported in the CLI's `perry start` command and worked correctly on the backend. However, the web and mobile API clients had type definitions and function signatures for `startWorkspace` that didn't include the `clone` parameter, preventing UI clients from passing repository URLs when starting workspaces. This change updates both web and mobile API clients to: - Add `clone` and `env` optional parameters to the `start` RPC type definition - Update the `startWorkspace` function to accept and pass through these options This aligns the web/mobile clients with the CLI behavior where `perry start --clone <url>` creates a workspace with a repository if it doesn't exist. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--cloneparameter support in web and mobile API clients forstartWorkspacecloneandenvoptional parametersperry start --clone <url>works correctlyBackground
After the consolidation of
perry createintoperry start(#7), the CLI correctly supportsperry start myworkspace --clone <url>. However, the web and mobile API clients had outdated type definitions that didn't include thecloneparameter, preventing UIs from creating workspaces with repositories.Changes
web/src/lib/api.ts:
startRPC type to includeclone?: stringandenv?: Record<string, string>startWorkspacefunction signature to accept and forward these optionsmobile/src/lib/api.ts:
Test plan
perry start mytest --clone https://github.com/user/repo🤖 Generated with Claude Code